package com.dingding.dao;

import com.dingding.pojo.BookInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BookInfo record);

    int insertSelective(BookInfo record);

    BookInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BookInfo record);

    int updateByPrimaryKey(BookInfo record);

    List<BookInfo> selectList();

    List<BookInfo> selectByNameAndBookId(@Param("bookTitle") String bookTitle, @Param("bookId") Integer bookId);

    List<BookInfo> selectByNameAndCategoryIds(@Param("bookName")String bookName,@Param("categoryIdList")List<Integer> categoryIdList);

}